using System;
using System.Collections.Generic;
using System.Linq;
using RMH.Entities;
using RMH.Services;

namespace RMH.Web.FakeServices
{
    public class FakeRoomService : IRoomService
    {
        private static List<Room> _rooms = new List<Room>
                                                 {
                                                     new Room() {Id = 1, RoomNumber = 1},
                                                     new Room() {Id = 2, RoomNumber = 2},
                                                     new Room() {Id = 3, RoomNumber = 3},
                                                     new Room() {Id = 4, RoomNumber = 4},
                                                     new Room() {Id = 5, RoomNumber = 5},
                                                     new Room() {Id = 6, RoomNumber = 6},
                                                     new Room() {Id = 7, RoomNumber = 7},
                                                     new Room() {Id = 8, RoomNumber = 8},
                                                 };
        public IList<Room> GetAll()
        {
            return _rooms;
        }

        public Room Get(int id)
        {
            return _rooms.Where(r => r.Id == id).FirstOrDefault();
        }

        public void Save(Room item)
        {
            throw new NotImplementedException();
        }
    }
}